package com.ecar.core.order.entity;

import java.io.Serializable;

public class OrderPriceDetail implements Serializable {
    private String id;

    private Double overMileagePrice;

    private Double overTimePrice;

    private Double emptyDriverPrice;

    private Double lightDriverPrice;

    private Double roadDistance;

    private Double emptyRoadDistance;

    private Integer driverTime;

    private String driverId;

    private String passengerId;

    private Double basePrice;

    private String backField;

    private Double timePrice;

    private Double longDistancePrice;

    private Double totalPrice;

    private String orderNum;

    private Integer success;

    private Double addCharge;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Double getOverMileagePrice() {
        return overMileagePrice;
    }

    public void setOverMileagePrice(Double overMileagePrice) {
        this.overMileagePrice = overMileagePrice;
    }

    public Double getOverTimePrice() {
        return overTimePrice;
    }

    public void setOverTimePrice(Double overTimePrice) {
        this.overTimePrice = overTimePrice;
    }

    public Double getEmptyDriverPrice() {
        return emptyDriverPrice;
    }

    public void setEmptyDriverPrice(Double emptyDriverPrice) {
        this.emptyDriverPrice = emptyDriverPrice;
    }

    public Double getLightDriverPrice() {
        return lightDriverPrice;
    }

    public void setLightDriverPrice(Double lightDriverPrice) {
        this.lightDriverPrice = lightDriverPrice;
    }

    public Double getRoadDistance() {
        return roadDistance;
    }

    public void setRoadDistance(Double roadDistance) {
        this.roadDistance = roadDistance;
    }

    public Double getEmptyRoadDistance() {
        return emptyRoadDistance;
    }

    public void setEmptyRoadDistance(Double emptyRoadDistance) {
        this.emptyRoadDistance = emptyRoadDistance;
    }

    public Integer getDriverTime() {
        return driverTime;
    }

    public void setDriverTime(Integer driverTime) {
        this.driverTime = driverTime;
    }

    public String getDriverId() {
        return driverId;
    }

    public void setDriverId(String driverId) {
        this.driverId = driverId;
    }

    public String getPassengerId() {
        return passengerId;
    }

    public void setPassengerId(String passengerId) {
        this.passengerId = passengerId;
    }

    public Double getBasePrice() {
        return basePrice;
    }

    public void setBasePrice(Double basePrice) {
        this.basePrice = basePrice;
    }

    public String getBackField() {
        return backField;
    }

    public void setBackField(String backField) {
        this.backField = backField;
    }

    public Double getTimePrice() {
        return timePrice;
    }

    public void setTimePrice(Double timePrice) {
        this.timePrice = timePrice;
    }

    public Double getLongDistancePrice() {
        return longDistancePrice;
    }

    public void setLongDistancePrice(Double longDistancePrice) {
        this.longDistancePrice = longDistancePrice;
    }

    public Double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public Integer getSuccess() {
        return success;
    }

    public void setSuccess(Integer success) {
        this.success = success;
    }

    public Double getAddCharge() {
        return addCharge;
    }

    public void setAddCharge(Double addCharge) {
        this.addCharge = addCharge;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        OrderPriceDetail other = (OrderPriceDetail) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOverMileagePrice() == null ? other.getOverMileagePrice() == null : this.getOverMileagePrice().equals(other.getOverMileagePrice()))
            && (this.getOverTimePrice() == null ? other.getOverTimePrice() == null : this.getOverTimePrice().equals(other.getOverTimePrice()))
            && (this.getEmptyDriverPrice() == null ? other.getEmptyDriverPrice() == null : this.getEmptyDriverPrice().equals(other.getEmptyDriverPrice()))
            && (this.getLightDriverPrice() == null ? other.getLightDriverPrice() == null : this.getLightDriverPrice().equals(other.getLightDriverPrice()))
            && (this.getRoadDistance() == null ? other.getRoadDistance() == null : this.getRoadDistance().equals(other.getRoadDistance()))
            && (this.getEmptyRoadDistance() == null ? other.getEmptyRoadDistance() == null : this.getEmptyRoadDistance().equals(other.getEmptyRoadDistance()))
            && (this.getDriverTime() == null ? other.getDriverTime() == null : this.getDriverTime().equals(other.getDriverTime()))
            && (this.getDriverId() == null ? other.getDriverId() == null : this.getDriverId().equals(other.getDriverId()))
            && (this.getPassengerId() == null ? other.getPassengerId() == null : this.getPassengerId().equals(other.getPassengerId()))
            && (this.getBasePrice() == null ? other.getBasePrice() == null : this.getBasePrice().equals(other.getBasePrice()))
            && (this.getBackField() == null ? other.getBackField() == null : this.getBackField().equals(other.getBackField()))
            && (this.getTimePrice() == null ? other.getTimePrice() == null : this.getTimePrice().equals(other.getTimePrice()))
            && (this.getLongDistancePrice() == null ? other.getLongDistancePrice() == null : this.getLongDistancePrice().equals(other.getLongDistancePrice()))
            && (this.getTotalPrice() == null ? other.getTotalPrice() == null : this.getTotalPrice().equals(other.getTotalPrice()))
            && (this.getOrderNum() == null ? other.getOrderNum() == null : this.getOrderNum().equals(other.getOrderNum()))
            && (this.getSuccess() == null ? other.getSuccess() == null : this.getSuccess().equals(other.getSuccess()))
            && (this.getAddCharge() == null ? other.getAddCharge() == null : this.getAddCharge().equals(other.getAddCharge()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOverMileagePrice() == null) ? 0 : getOverMileagePrice().hashCode());
        result = prime * result + ((getOverTimePrice() == null) ? 0 : getOverTimePrice().hashCode());
        result = prime * result + ((getEmptyDriverPrice() == null) ? 0 : getEmptyDriverPrice().hashCode());
        result = prime * result + ((getLightDriverPrice() == null) ? 0 : getLightDriverPrice().hashCode());
        result = prime * result + ((getRoadDistance() == null) ? 0 : getRoadDistance().hashCode());
        result = prime * result + ((getEmptyRoadDistance() == null) ? 0 : getEmptyRoadDistance().hashCode());
        result = prime * result + ((getDriverTime() == null) ? 0 : getDriverTime().hashCode());
        result = prime * result + ((getDriverId() == null) ? 0 : getDriverId().hashCode());
        result = prime * result + ((getPassengerId() == null) ? 0 : getPassengerId().hashCode());
        result = prime * result + ((getBasePrice() == null) ? 0 : getBasePrice().hashCode());
        result = prime * result + ((getBackField() == null) ? 0 : getBackField().hashCode());
        result = prime * result + ((getTimePrice() == null) ? 0 : getTimePrice().hashCode());
        result = prime * result + ((getLongDistancePrice() == null) ? 0 : getLongDistancePrice().hashCode());
        result = prime * result + ((getTotalPrice() == null) ? 0 : getTotalPrice().hashCode());
        result = prime * result + ((getOrderNum() == null) ? 0 : getOrderNum().hashCode());
        result = prime * result + ((getSuccess() == null) ? 0 : getSuccess().hashCode());
        result = prime * result + ((getAddCharge() == null) ? 0 : getAddCharge().hashCode());
        return result;
    }
}